#define common()
<base href="#(baseUrl)">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta charset="utf-8" />
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<link rel="stylesheet" href="static/admin/css/bootstrap.min.css" />
<link rel="stylesheet" href="static/admin/css/ace.min.css" id="main-ace-style" />
<link rel="stylesheet" href="static/admin/css/ui.jqgrid.css"/>
<link rel="stylesheet" href="static/admin/css/font-awesome.min.css" />
<link rel="stylesheet" href="static/admin/css/global.css" />
<link rel="stylesheet" href="static/libs/layui/css/layui.css" />

<script src="static/libs/jquery.min.js"></script>
<script src="static/admin/js/jqGrid/jquery.jqGrid.min.js"></script>
<script src="static/admin/js/jqGrid/i18n/grid.locale-cn.js"></script>
<!--
<script src="static/admin/js/ext-jqgrid.js"></script>
<script src="static/admin/js/ext-jqtreegrid.js"></script>
-->
<script src="static/admin/js/kelin.jqgrid.js"></script>
<script src="static/admin/js/ace.min.js"></script>
<script src="static/admin/js/bootstrap.min.js"></script>
<script src="static/libs/layer/layer.js"></script>
<script src="static/libs/layui/layui.js"></script>
<script type="text/javascript">
var closeParentLayer = function(){
	var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
	parent.layer.close(index);
}

var Http = {};
	Http.loading = null;
	Http.post = function(url, data, func){
		Http.loading = layer.load(1, { shade: [0.1,'#fff']});
		$.post(url, data, function(res){
			if(typeof func == 'function'){
				if(res.code === -1002){
					layer.msg(res.msg,{icon:5, shade: [0.1,'#fff']}, function(){
						top.window.location.reload(true);
					});
				} else {
					func(res);
				}
			}
			layer.close(Http.loading);
			Http.loading = null;
		})
	}
	
	Http.get = function(url, func){
		Http.loading = layer.load(1, { shade: [0.1,'#fff']});
		$.getJSON(url, function(res){
			if(typeof func == 'function'){
				if(res.code === -1002){
					layer.msg(res.msg, {icon:5, shade: [0.1,'#fff']}, function(){
						top.window.location.reload(true);
					});
				} else {
					func(res);
				}
			}
			layer.close(Http.loading);
			Http.loading = null;
		});
	}
</script>
#end